/**
 * Created by zoulu on 16/9/5.
 */
var i=0;

function timedCount()
{
    alert("123");
    i=i+1;
    postMessage(i);
    setTimeout("timedCount()",500);
}


timedCount();